package com.torry.edss.integration.feign.eastmoney;


import com.torry.edss.integration.feign.eastmoney.response.EMLimitBombPoolResponse;
import com.torry.edss.integration.feign.eastmoney.response.EMLimitDownPoolResponse;
import com.torry.edss.integration.feign.eastmoney.response.EMLimitUpPoolResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author torry.wang
 */
@FeignClient(name = "eastMoneyPush2ExClient", url = "http://push2ex.eastmoney.com")
public interface EastMoneyPush2ExFeignClient {

    @GetMapping("/getTopicZTPool?ut=7eea3edcaed734bea9cbfc24409ed989&dpt=wz.ztzt&Pageindex=0&pagesize=9999&sort=fbt:asc&date={date}")
    EMLimitUpPoolResponse fetchLimitUps(@PathVariable(name = "date") String date);

    @GetMapping("/getTopicDTPool?ut=7eea3edcaed734bea9cbfc24409ed989&dpt=wz.ztzt&Pageindex=0&pagesize=9999&sort=fund:asc&date={date}")
    EMLimitDownPoolResponse fetchLimitDowns(@PathVariable(name = "date") String date);

    @GetMapping("/getTopicZBPool?ut=7eea3edcaed734bea9cbfc24409ed989&dpt=wz.ztzt&Pageindex=0&pagesize=9999&sort=fbt:asc&date={date}")
    EMLimitBombPoolResponse fetchLimitBombs(@PathVariable(name = "date") String date);
}
